<?php


class Blackbird_Form_Content_IndexParams extends Zend_Form_SubForm
{
	function __construct($options = null)
	{
		parent::__construct($options);

		$this
			->addElement('text', 'mainArticlesCount', array(
				'label' => 'Cantidad de artículos principales:',
				'maxlength' => 9,
				'required' => true,
				'validators' => array(array('StringLength', true, array('min' => 1, 'max' => 9)), 'Int'),
			))

			->addElement('text', 'summaryArticlesCount', array(
				'label' => 'Cantidad de artículos con resumen:',
				'maxlength' => 9,
				'required' => true,
				'validators' => array(array('StringLength', true, array('min' => 1, 'max' => 9)), 'Int'),
			))

			->addElement('text', 'linkArticlesCount', array(
				'label' => 'Cantidad de enlaces a artículos:',
				'maxlength' => 9,
				'required' => true,
				'validators' => array(array('StringLength', true, array('min' => 1, 'max' => 9)), 'Int'),
			))
			;

		$this->setDefaults(array(
			'mainArticlesCount' => 1,
			'summaryArticlesCount' => 8,
			'linkArticlesCount' => 4,
		));
	}
}

